package com.hehua.AbstractFatory;

public class AbstractClient {
    public static void main(String[] args) throws Exception {
        SkinFactory skinFactory;
        Button button;
        TextField textField;
        Combobox combobox;
        skinFactory = (SkinFactory)XmlUtil.getBean();
        button = skinFactory.createButton();
        textField = skinFactory.createTextField();
        combobox = skinFactory.createCombobox();
        button.display();
        textField.display();
        combobox.display();
    }
}
